package com.upay.android.domain.response;

import java.io.Serializable;

public class ResponseBody <T extends Object> implements Serializable {
	
	/* ---- Constants ---- */
	private static final long serialVersionUID = 201202272149L;
	
	/* ---- Instance Variables ----*/
	
	private T responseObject = null;
    private ResponseError responseError = null;

	
	/* ---- Constructors ---- */
	
	public ResponseBody() {
		super();
	}
	
	public ResponseBody(T responseObject, ResponseError responseError) {
		this.responseObject = responseObject;
		this.responseError = responseError;
	}
	
	
	/* ---- Getters and Setters ----*/
	
	/**
	 * @return the responseObject
	 */
	public T getResponseObject() {
		return responseObject;
	}

	/**
	 * @param responseObject the responseObject to set
	 */
	public void setResponseObject(T responseObject) {
		this.responseObject = responseObject;
	}

	/**
	 * @return the responseError
	 */
	public ResponseError getResponseError() {
		return responseError;
	}

	/**
	 * @param responseError the responseError to set
	 */
	public void setResponseError(ResponseError responseError) {
		this.responseError = responseError;
	}

}
